package com.dhp.bkOjfeignclient.service;


import com.dhp.model.entity.QuestionSubmit;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 判题服务feignClient
 */
@FeignClient(name = "bkOj-judge-service" , path = "/api/judge/inner")
public interface JudgeFeignClient {

    /**
     * 判题业务
     *
     * @param questionSubmit 题目提交记录
     * @return
     */
    @PostMapping("/do")
    QuestionSubmit doJudge(@RequestBody QuestionSubmit questionSubmit);
}
